package com.yf.jnicpp;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

public class MainActivity extends Activity {
	
	static {
		System.loadLibrary("hello");
	}

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    
    public void callCpp(View v) {
    	Toast.makeText(this, hello(), Toast.LENGTH_SHORT).show();
    }
    
    public native String hello();
    
}
